<?php
/**
 *	Data Model of Company Locations.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
/**
 *	Data Model of Company Locations.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			13.03.2007
 *	@version		0.1
 */
/*
CREATE TABLE `mv2_company_locations` (
`company_location_id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`company_id` INT( 11 ) UNSIGNED NOT NULL ,
`location_id` INT( 11 ) UNSIGNED NOT NULL ,
INDEX ( `company_id` , `location_id` )
) ENGINE = innodb CHARACTER SET utf8 COLLATE utf8_unicode_ci;
*/
class Model_CompanyLocation extends Framework_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int		company_location_id		ID of Company Location
	 *	@return		void
	 */
	function __construct( $company_location_id = false )
	{
		$tablename	= "company_locations";
		$fields	= array (
			"company_location_id",
			"company_id",
			"location_id",
			);
		$primary_key	= "company_location_id";
		$indices		= array( 'company_id', 'location_id' );
		parent::__construct( $tablename, $fields, $primary_key, $$primary_key );
		$this->setIndices( $indices );
	}
}
?>